//
//  vdMessageButton.h
//  Void Dead
//
//  Created by Sidney Just on 08.12.09.
//
//  Copyright © 2009 by Sidney Just
//  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 
//  documentation files (the "Software"), to deal in the Software without restriction, including without limitation 
//  the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, 
//  and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
//  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
//  INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 
//  PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE 
//  FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 
//  ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

#import <Foundation/Foundation.h>

#import "vdButton.h"
#import "vdLabel.h"

/**
 * This class represents an button with a text and a texture which notifies a given selector when there was a touch.
 * <br>If you want to use buttons, you must add these buttons as children to a vdGUINode, so they can get touch messages.
 **/
@interface vdMessageButton : vdButton {
	@private
	vdLabel *stateNormalLabel;
	
	vdLabel *statePressedLabel;
	
	vdLabel *stateDisabledLabel;
}

/**
 * Sets the string for the default button state
 @param msg The string that should be displayed for this state.
 **/
- (void)setNormalStateMessage:(NSString *)msg;

/**
 * Sets the string for the pressed button state
 @param msg The string that should be displayed for this state.
 **/
- (void)setPressedStateMessage:(NSString *)msg;

/**
 * Sets the string for the disabled button state
 @param msg The string that should be displayed for this state.
 **/
- (void)setDisabledStateMessage:(NSString *)msg;

/**
 * Inits a vdMessageButton with the given textures and strings.
 @param nstateTex The name of the normal state texture
 @param nstateMess The message of the normal state
 @param pstateTex The name of the pressed state texture
 @param pstateMess The message of the pressed state
 **/
- (id)initWithNormalState:(NSString	*)nstateTex withMessage:(NSString *)nstateMess andPressedState:(NSString *)pstateTex withMessage:(NSString *)pstateMess;


@end
